package com.yq.day27;

import java.io.IOException;
import java.io.RandomAccessFile;

/**
 * @author 3307235355@qq.com
 * @since 2022/06/27 21:17
 */
public class Demo01 {
    public static void main(String[] args) throws IOException {
        RandomAccessFile raf = new RandomAccessFile("a.txt","rw");
        // raf.write(12);

        int read = raf.read();
        System.out.println(read);
        System.out.println(raf.getFilePointer());

        raf.close();


    }
}
